|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<ComandoFTP>
net.sf.webphotos.util.legacy.CacheFTP
public class CacheFTP
Mantém uma lista (arquivo) com comandos FTP.
Formato: acao album foto.
Exemplos: 1 345 2233 - enviar foto 2233 do álbum 345.
1 345 0 - enviar tudo do álbum 345 (excluindo a entrada anterior).
| Field Summary | |
|---|---|
static int |
DELETE
Número de opção da ação DELETE. |
static int |
DOWNLOAD
Número de opção da ação DOWNLOAD. |
static int |
UPLOAD
Número de opção da ação UPLOAD. |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Method Summary | |
|---|---|
boolean |
add(ComandoFTP a)
Valida e adiciona um comando no arquivo através de um Object recebido como parâmetro. |
void |
addCommand(int acao,
int album,
int foto)
Recebe uma ação, um albúm e uma foto, e adiciona um comando de FTP no arquivo. |
static CacheFTP |
getCache()
Retorna a instancia de CacheFTP feita na própria classe. |
void |
saveFile()
Grava o arquivo. |
String |
toString()
Retorna uma String que armazena todos os comandos FTP do arquivo no formato de uma lista. |
| Methods inherited from class java.util.ArrayList |
|---|
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Field Detail |
|---|
public static final int UPLOAD
public static final int DOWNLOAD
public static final int DELETE
| Method Detail |
|---|
public static CacheFTP getCache()
public void addCommand(int acao,
int album,
int foto)
acao - Tipo de ação.album - Albúm.foto - Foto.public boolean add(ComandoFTP a)
add in interface Collection<ComandoFTP>add in interface List<ComandoFTP>add in class ArrayList<ComandoFTP>a - Objeto a ser adicionado ao arquivo.
public void saveFile()
public String toString()
toString in class AbstractCollection<ComandoFTP>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||